package eventStrategies.physicalModel;

import model.IPhysicalDataModel;
import eventManager.AppEvent;
import eventStrategies.IEventResponse;
import events.ECodeEventList;
import events.physicalModel.SetRadiusEvent;

public class SetRadiusStrategy extends IEventResponse {

	private IPhysicalDataModel physModel;
	
	public SetRadiusStrategy(IPhysicalDataModel physModel) {
		super(ECodeEventList.SET_RADIUS);
		this.physModel = physModel;
	}

	@Override
	public void execute(AppEvent event) {
		SetRadiusEvent fullEvent = (SetRadiusEvent) event;
		physModel.setRadius(fullEvent.radius);		
	}

}
